import unittest

'''
1. setUpClass, tearDownClass所有的测试方法运行前或结束时运行, 一个测试类中只运行一次

'''


class TestDemo(unittest.TestCase):
    @classmethod
    def setUpClass(cls) -> None:
        print('start')

    @classmethod
    def tearDownClass(cls) -> None:
        print('end')

    def test_case1(self):
        print(1111)

    def test_case2(self):
        print(22222)


if __name__ == '__main__':
    unittest.main()
